package com.logistics.mapper;

import com.logistics.entity.TransportRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TransportRecordMapper {
    List<TransportRecord> selectList(Object o);
    
    TransportRecord selectById(@Param("id") Long id);
    
    TransportRecord selectByTransportNo(@Param("transportNo") String transportNo);
    
    List<TransportRecord> selectByOrderId(@Param("orderId") Long orderId);
    
    int insert(TransportRecord record);
    
    int update(TransportRecord record);
    
    int deleteById(@Param("id") Long id);
    
    List<TransportRecord> selectAll();
    
    int updateStatus(@Param("id") Long id, @Param("status") String status);
    
    List<TransportRecord> search(@Param("transportNo") String transportNo,
                               @Param("status") String status,
                               @Param("startDate") String startDate,
                               @Param("endDate") String endDate);
} 